<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_user_bg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-new_user_bg" class="form-control" size="50" name="row[new_user_bg]" type="text" value="{$row.new_user_bg|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-new_user_bg" class="btn btn-danger faupload" data-input-id="c-new_user_bg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-new_user_bg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-new_user_bg" class="btn btn-primary fachoose" data-input-id="c-new_user_bg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-new_user_bg"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-new_user_bg"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seckill_bg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-seckill_bg" class="form-control" size="50" name="row[seckill_bg]" type="text" value="{$row.seckill_bg|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-seckill_bg" class="btn btn-danger faupload" data-input-id="c-seckill_bg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-seckill_bg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-seckill_bg" class="btn btn-primary fachoose" data-input-id="c-seckill_bg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-seckill_bg"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-seckill_bg"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Join_group_bg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-join_group_bg" class="form-control" size="50" name="row[join_group_bg]" type="text" value="{$row.join_group_bg|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-join_group_bg" class="btn btn-danger faupload" data-input-id="c-join_group_bg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-join_group_bg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-join_group_bg" class="btn btn-primary fachoose" data-input-id="c-join_group_bg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-join_group_bg"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-join_group_bg"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Join_group_bg2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-join_group_bg2" class="form-control" size="50" name="row[join_group_bg2]" type="text" value="{$row.join_group_bg2|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-join_group_bg2" class="btn btn-danger faupload" data-input-id="c-join_group_bg2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-join_group_bg2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-join_group_bg2" class="btn btn-primary fachoose" data-input-id="c-join_group_bg2" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-join_group_bg2"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-join_group_bg2"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group_code_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-group_code_image" class="form-control" size="50" name="row[group_code_image]" type="text" value="{$row.group_code_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-group_code_image" class="btn btn-danger faupload" data-input-id="c-group_code_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-group_code_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-group_code_image" class="btn btn-primary fachoose" data-input-id="c-group_code_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-group_code_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-group_code_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seckill_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seckill_start_time" class="form-control datetimepicker" data-date-format=" HH:mm:ss" data-use24hours="true" data-use-current="true" name="row[seckill_start_time]" type="text" value="{:$row.seckill_start_time?datetime($row.seckill_start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seckill_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seckill_end_time" class="form-control datetimepicker" data-date-format=" HH:mm:ss" data-use-current="true" name="row[seckill_end_time]" type="text" value="{:$row.seckill_end_time?datetime($row.seckill_end_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_quantity" class="form-control" name="row[coupon_quantity]" type="number" value="{$row.coupon_quantity|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_user_coupon_effective_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new-user-coupon_effective_time" class="form-control" name="row[new_user_coupon_effective_time]" type="number" value="{$row.new_user_coupon_effective_time|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Join_group_coupon_effective_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-join-group-coupon_effective_time" class="form-control" name="row[join_group_coupon_effective_time]" type="number" value="{$row.join_group_coupon_effective_time|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seckill_coupon_effective_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-secckill-coupon_effective_time" class="form-control" name="row[seckill_coupon_effective_time]" type="number" value="{$row.seckill_coupon_effective_time|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
